<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
    <head>
        <title>{% block title %} {% endblock %} - APNET.</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        {% block csslink %}
        <link rel="stylesheet" href="/media/css/minimalist.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/media/css/content-right.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/media/css/brown.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/media/css/bg_grey.css" type="text/css" media="screen" />
        {% endblock %}
    </head>
    <body>
        <div id="header">
            <h1><a href="/">{% block header %}APNET. Tenements management{% endblock %}</a></h1>
        </div>
        <div id="page">
            <div id="content">
            <h2>{% block page_name%}Page name{% endblock %}</h2>
			{% block  main_content %}
			
            {% endblock %}
         	</div>
            <div id="sidebar" class="bg_color">
                {% block login %}
                <!--  <form action="" method="post"> -->
                    <fieldset>
        				<legend>Login</legend>
                        Please, follow next link to authorize again: 
                        <a title="Login" href="{{ lurl }}">Google authorization</a>
                        
                        <!-- <label for="username">Login:</label>
                        <input type="text" name="username" id="username" value=""/>
    
                        <label for="password">Password:</label>
                        <input type="password" name="password" id="password" value=""/>
                        <div class="submit">
                            <input type="submit" name="login" value="Login" /> 
                        </div> -->
                    </fieldset>
                <!-- </form>  -->
                {% endblock login%}
				{% block navigation %}
                <ul>
                    <li class="widget widget_pages" id="pages">
						{% block features %}
                        <h2 class="widgettitle">About Us</h2>
                        <ul>
                            <li class="page_item"><a title="Mission" href="#">Mission</a></li>
                            <li class="page_item"><a title="Contacts" href="#">Contacts</a></li>
                        </ul>
                        {% endblock features %}
                        <h2 class="widgettitle">Protected zone</h2>
                        <ul>
                            <li class="page_item"><a title="Login" href="/ams/">Login</a></li>
                        </ul>
                    </li>
                </ul>
                {% endblock %}
            </div>
        </div>
        <div id="footer">
            <p>
                Copyright &copy; <a href="#">ATNET</a> 2012
            </p>
        </div>
    </body>
</html>